/**
 * @Author: ycq_work@163.com
 * @DATE: 2023/7/17
 * @Description: 
*/
#ifndef RETURNTEXTMODEL_H
#define RETURNTEXTMODEL_H
#include <iostream>
#include <unordered_map>
namespace tran{

class returnText{
private:
    std::string from;                                                      // 源语言
    std::string to;                                                        // 目标语言
    std::unordered_map<std::string, std::string> trans_result;             // 译文
    int error_code;                                                        // 错误码
public:
    [[nodiscard]] std::string getFrom() const
    {
        return from;
    }
    void setFrom(std::string from)
    {
        returnText::from = from;
    }

    [[nodiscard]] std::string getTo() const
    {
        return to;
    }
    void setAction(std::string to)
    {
        returnText::to = to;
    }

    [[nodiscard]] std::unordered_map<std::string, std::string> getTrans_result() const
    {
        return trans_result;
    }
    void setTrans_result(std::unordered_map<std::string, std::string> trans_result)
    {
        returnText::trans_result = trans_result;
    }

    [[nodiscard]] int getError_code() const
    {
        return error_code;
    }
    void setAction(int error_code)
    {
        returnText::error_code = error_code;
    }
};

}// namespace tran

#endif //RETURNTEXTMODEL_H
